Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

403
Vistas
How to establish connection when "Receiving end does not exist" error occurs (manifest version 3)?

I am building a chrome-extension which collects text from the current page/tab, and accumulate that into another HTML page (local), say to result.html.

So, we need to send selected text from the current page to the background script,

then background script to the HTML page.

But I get error if the HTML is not open already,

when the HTML page is open, even then I get an error first time:

background.js:1 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.

If I close the page, then run again, this error will keep happening.

What is the solution ? Thanks.

I tried the solution presented in this post but nothing worked. Probably I am missing something, but I could not find it. My code in given in the comment. I think due to manifest version 3, that answer needs updating.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda